﻿using UnityEngine;
using System.Collections;

public class GoalSize : MonoBehaviour {
	public float size;
	public GameObject upper, lower;

	// Use this for initialization
	void Start () {
	}

	void Update() {
		Vector3 pos = upper.transform.localPosition;
		pos.y = size;
		upper.transform.localPosition = pos;
		pos = lower.transform.localPosition;
		pos.y = -size;
		lower.transform.localPosition = pos;
	}
}
